<?php
namespace app\common\validate;
use think\Validate;

class GoodsModel extends Validate
{
	protected $rule = [
		'goods_name' => 'require',
		'goods_subtitle' => 'require',
		'shop_price' => 'require',
		'market_price' => 'require',
		'goods_image' => 'require',
	];

	protected $message  = [
		'goods_name.require' => '商品名字一定需要填写！',
		'goods_subtitle.require' => '商品描述一定需要填写！',
		'shop_price.require' => '实际售价一定需要填写！',
		'market_price.require' => '市场售价一定需要填写！',
		'goods_image.require' => '商品主图一定需要填写！',
	];

    // protected $scene = [
    //   'add'   =>  ['goods_name','goods_subtitle','content'],
    //   'edit'  =>  ['setting_key','setting_value','setting_type'],
    // ];  
}